package com.zbf.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者: LCG
 * 日期: 2019/8/10 10:17
 * 描述: 任务服务启动类
 */
@SpringBootApplication
@RestController
public class TaskApplication {

    private static Logger logger = LoggerFactory.getLogger(TaskApplication.class);

    public static void main(String[] args) {

        SpringApplication.run(TaskApplication.class,args);
    }

    @RequestMapping("taskHealthCheck")
    public String taskHealthCheck(){

        logger.info("========task=ok=========");

        return "ok";
    }

}
